// 打开Clash
document.getElementById('clash-button').addEventListener('click', function() {
    const clashLink = 'clash://install-config?url=aHR0cHM6Ly9leGFtcGxlLmNvbS9jb25maWcueWFtbA==&name=MyConfig'; // 替换为你的Clash链接

    // 尝试打开Clash链接
    try {
        window.location.href = clashLink;
    } catch (error) {
        console.error('无法打开Clash链接:', error);
        alert('无法打开Clash链接，请确保已安装Clash客户端。');
    }
});



